package org.example.demos.jvm;

public class ClassLoaderTest {
    private static int b;
    static {
        b=1;
        System.out.println(b);
    }
    {
        a=0;
    }
    private int a;
    {
        a=-1;
    }

    public int getA() {
        return a;
    }

    public static void main(String[] args) {
        new ClassLoaderTest();
        System.out.println("test");
    }

    public ClassLoaderTest() {
        System.out.println(a);
        this.a = 2;
        System.out.println(a);
    }
}
